home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / info / emacs-14 < prev    next >
Encoding:
GNU Info File  |  1994-10-06  |  46.5 KB  |  1,221 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.54 from the
  2. input file emacs.texi.
  3.  
  4. 
  5. File: emacs,  Node: Dired Deletion,  Next: Flagging Many Files,  Prev: Dired Commands,  Up: Dired
  6.  
  7. Deleting Files with Dired
  8. =========================
  9.  
  10.    The primary use of Dired is to "flag" files for deletion and then
  11. delete the files previously flagged.
  12.  
  13. `d'
  14.      Flag this file for deletion.
  15.  
  16. `u'
  17.      Remove deletion flag on this line.
  18.  
  19. `DEL'
  20.      Move point to previous line and remove the deletion flag on that
  21.      line.
  22.  
  23. `x'
  24.      Delete the files that are flagged for deletion.
  25.  
  26.    You can flag a file for deletion by moving to the line describing the
  27. file and typing `d'.  The deletion flag is visible as a `D' at the
  28. beginning of the line.  This command moves point to the next line, so
  29. that repeated `d' commands flag successive files.  A numeric argument
  30. serves as a repeat count.
  31.  
  32.    The files are flagged for deletion rather than deleted immediately to
  33. reduce the danger of deleting a file accidentally.  Until you direct
  34. Dired to expunge the flagged files, you can remove deletion flags using
  35. the commands `u' and DEL.  `u' works just like `d', but removes flags
  36. rather than making flags.  DEL moves upward, removing flags; it is like
  37. `u' with numeric argument automatically negated.
  38.  
  39.    To delete the flagged files, type `x' (`dired-expunge').  This
  40. command first displays a list of all the file names flagged for
  41. deletion, and requests confirmation with `yes'.  If you confirm, Dired
  42. deletes the flagged files, then deletes their lines from the text of
  43. the Dired buffer.  The shortened Dired buffer remains selected.
  44.  
  45.    If you answer `no' or quit with `C-g' when asked to confirm, you
  46. return immediately to Dired, with the deletion flags still present in
  47. the buffer, and no files actually deleted.
  48.  
  49. 
  50. File: emacs,  Node: Flagging Many Files,  Next: Dired Visiting,  Prev: Dired Deletion,  Up: Dired
  51.  
  52. Flagging Many Files
  53. ===================
  54.  
  55. `#'
  56.      Flag all auto-save files (files whose names start and end with `#')
  57.      for deletion (*note Auto Save::.).
  58.  
  59. `~'
  60.      Flag all backup files (files whose names end with `~') for deletion
  61.      (*note Backup::.).
  62.  
  63. `. (Period)'
  64.      Flag excess numeric backup files for deletion.  The oldest and
  65.      newest few backup files of any one file are exempt; the middle
  66.      ones are flagged.
  67.  
  68. `% d REGEXP RET'
  69.      Flag for deletion all files whose names match the regular
  70.      expression REGEXP (`dired-flag-files-regexp').  `%d' is like `% m'
  71.      except that it flags files with `D' instead of marking with `*'.
  72.      *Note Marks vs Flags::.
  73.  
  74.    The `#', `~' and `.' commands flag many files for deletion, based on
  75. their file names.  These commands are useful precisely because they do
  76. not actually delete any files; you can remove the deletion flags from
  77. any flagged files that you really wish to keep.
  78.  
  79.    `#' flags for deletion all files whose names look like auto-save
  80. files (*note Auto Save::.)--that is, files whose names begin and end
  81. with `#'.  `~' flags for deletion all files whose names say they are
  82. backup files (*note Backup::.)--that is, whose names end in `~'.
  83.  
  84.    `.' (Period) flags just some of the backup files for deletion: all
  85. but the oldest few and newest few backups of any one file.  Normally
  86. `dired-kept-versions' (*not* `kept-new-versions'; that applies only
  87. when saving) specifies the number of newest versions of each file to
  88. keep, and `kept-old-versions' specifies the number of oldest versions
  89. to keep.
  90.  
  91.    Period with a positive numeric argument, as in `C-u 3 .', specifies
  92. the number of newest versions to keep, overriding
  93. `dired-kept-versions'.  A negative numeric argument overrides
  94. `kept-old-versions', using minus the value of the argument to specify
  95. the number of oldest versions of each file to keep.
  96.  
  97.    The `% d' command flags all files whose names match a specified
  98. regular expression (`dired-flag-files-regexp').  Only the non-directory
  99. part of the file name is used in matching.  You can use `^' and `$' to
  100. anchor matches.  You can exclude subdirectories by hiding them (*note
  101. Hiding Subdirectories::.).
  102.  
  103. 
  104. File: emacs,  Node: Dired Visiting,  Next: Marks vs Flags,  Prev: Flagging Many Files,  Up: Dired
  105.  
  106. Visiting Files in Dired
  107. =======================
  108.  
  109.    There are several Dired commands for visiting or examining the files
  110. listed in the Dired buffer.  All of them apply to the current line's
  111. file; if that file is really a directory, these commands invoke Dired on
  112. that subdirectory (making a separate Dired buffer).
  113.  
  114. `f'
  115.      Visit the file described on the current line, like typing `C-x C-f'
  116.      and supplying that file name (`dired-find-file').  *Note
  117.      Visiting::.
  118.  
  119. `o'
  120.      Like `f', but uses another window to display the file's buffer
  121.      (`dired-find-file-other-window').  The Dired buffer remains visible
  122.      in the first window.  This is like using `C-x 4 C-f' to visit the
  123.      file.  *Note Windows::.
  124.  
  125. `C-o'
  126.      Visit the file described on the current line, and display the
  127.      buffer in another window, but do not select that window
  128.      (`dired-display-file').
  129.  
  130. `Mouse-2'
  131.      Visit the file named by the line you click on
  132.      (`dired-mouse-find-file-other-window').  This uses another window
  133.      to display the file, like the `o' command.
  134.  
  135. `v'
  136.      View the file described on the current line, using `M-x view-file'
  137.      (`dired-view-file').
  138.  
  139.      Viewing a file is like visiting it, but is slanted toward moving
  140.      around in the file conveniently and does not allow changing the
  141.      file.  *Note View File: Misc File Ops.
  142.  
  143. 
  144. File: emacs,  Node: Marks vs Flags,  Next: Operating on Files,  Prev: Dired Visiting,  Up: Dired
  145.  
  146. Dired Marks vs. Flags
  147. =====================
  148.  
  149.    Instead of flagging a file with `D', you can "mark" the file with
  150. some other character (usually `*').  Most Dired commands to operate on
  151. files, aside from "expunge" (`x'), look for files marked with `*'.
  152.  
  153.    Here are some commands for marking with `*' (and also for
  154. unmarking).  (*Note Dired Deletion::, for commands to flag and unflag
  155. files.)
  156.  
  157. `m'
  158.      Mark the current file with `*' (`dired-mark').  With a numeric
  159.      argument N, mark the next N files starting with the current file.
  160.      (If N is negative, mark the previous -N files.)
  161.  
  162. `*'
  163.      Mark all executable files with `*' (`dired-mark-executables').
  164.      With a numeric argument, unmark all those files.
  165.  
  166. `@'
  167.      Mark all symbolic links with `*' (`dired-mark-symlinks').  With a
  168.      numeric argument, unmark all those files.
  169.  
  170. `/'
  171.      Mark with `*' all files which are actually directories, except for
  172.      `.' and `..' (`dired-mark-directories').  With a numeric argument,
  173.      unmark all those files.
  174.  
  175. `M-DEL MARKCHAR'
  176.      Remove all marks that use the character MARKCHAR
  177.      (`dired-unmark-all-files').  If you specify RET as MARKCHAR, this
  178.      command removes all marks, no matter what the marker character is.
  179.  
  180.      With a numeric argument, this command queries about each marked
  181.      file, asking whether to remove its mark.  You can answer `y'
  182.      meaning yes, `n' meaning no, `!' to remove the marks from the
  183.      remaining files without asking about them.
  184.  
  185. `c OLD NEW'
  186.      Replace all marks that use the character OLD with marks that use
  187.      the character NEW (`dired-change-marks').  This command is the
  188.      primary way to create or use marks other than `*' or `D'.  The
  189.      arguments are single characters--do not use RET to terminate them.
  190.  
  191.      You can use almost any character as a mark character by means of
  192.      this command, to distinguish various classes of files.  If OLD is a
  193.      space (` '), then the command operates on all unmarked files; if
  194.      NEW is a space, then the command unmarks the files it acts on.
  195.  
  196.      To illustrate the power of this command, here is how to put `*'
  197.      marks on all the files that are unmarked, while unmarking all
  198.      those that have `*' marks:
  199.  
  200.           c * t  c SPC *  c t SPC
  201.  
  202. `% m REGEXP RET'
  203.      Mark (with `*') all files whose names match the regular expression
  204.      REGEXP (`dired-mark-files-regexp').
  205.  
  206.      Only the non-directory part of the file name is used in matching.
  207.      Use `^' and `$' to anchor matches.  Exclude subdirectories by
  208.      hiding them (*note Hiding Subdirectories::.).
  209.  
  210. 
  211. File: emacs,  Node: Operating on Files,  Next: Shell Commands in Dired,  Prev: Marks vs Flags,  Up: Dired
  212.  
  213. Operating on Files
  214. ==================
  215.  
  216.    This section describes the basic Dired commands to operate on one
  217. file or several files.  All of these commands are capital letters; all
  218. of them use the minibuffer, either to read an argument or to ask for
  219. confirmation, before they act.  All use the following convention to
  220. decide which files to manipulate:
  221.  
  222.    * If you give the command a numeric prefix argument N, it operates
  223.      on the next N files, starting with the current file.  (If N is
  224.      negative, the command operates on the -N files preceding the
  225.      current line.)
  226.  
  227.    * Otherwise, if some files are marked with `*', the command operates
  228.      on all those files.
  229.  
  230.    * Otherwise, the command operates on the current file only.
  231.  
  232.    Here are the file-manipulating commands that operate on files in this
  233. way.  (Some other Dired commands, such as `!' and the `%' commands, use
  234. the same conventions to decide which files to work on.)
  235.  
  236. `C NEW RET'
  237.      Copy the specified files (`dired-do-copy').  The argument NEW is
  238.      the directory to copy into, or (if copying a single file) the new
  239.      name.
  240.  
  241.      If `dired-copy-preserve-time' is non-`nil', then copying with this
  242.      command sets the modification time of the new file to be the same
  243.      as that of the old file.
  244.  
  245. `R NEW RET'
  246.      Rename the specified files (`dired-do-rename').  The argument NEW
  247.      is the directory to rename into, or (if renaming a single file)
  248.      the new name.
  249.  
  250.      Dired automatically changes the visited file name of buffers
  251.      associated with renamed files so that they refer to the new names.
  252.  
  253. `H NEW RET'
  254.      Make hard links to the specified files (`dired-do-hardlink').  The
  255.      argument NEW is the directory to make the links in, or (if making
  256.      just one link) the name to give the link.
  257.  
  258. `S NEW RET'
  259.      Make symbolic links to the specified files (`dired-do-symlink').
  260.      The argument NEW is the directory to make the links in, or (if
  261.      making just one link) the name to give the link.
  262.  
  263. `M MODESPEC RET'
  264.      Change the mode (also called "permission bits") of the specified
  265.      files (`dired-do-chmod').  This uses the `chmod' program, so
  266.      MODESPEC can be any argument that `chmod' can handle.
  267.  
  268. `G NEWGROUP RET'
  269.      Change the group of the specified files to NEWGROUP
  270.      (`dired-do-chgrp').
  271.  
  272. `O NEWOWNER RET'
  273.      Change the owner of the specified files to NEWOWNER
  274.      (`dired-do-chown').  (On most systems, only the superuser can do
  275.      this.)
  276.  
  277.      The variable `dired-chown-program' specifies the name of the
  278.      program to use to do the work (different systems put `chown' in
  279.      different places).
  280.  
  281. `P COMMAND RET'
  282.      Print the specified files (`dired-do-print').  You must specify the
  283.      command to print them with, but the minibuffer starts out with a
  284.      suitable guess made using the variables `lpr-command' and
  285.      `lpr-switches' (the same variables that `lpr-file' uses; *note
  286.      Hardcopy::.).
  287.  
  288. `Z'
  289.      Compress or uncompress the specified files (`dired-do-compress').
  290.      If the file appears to be a compressed file, it is uncompressed;
  291.      otherwise, it is compressed.
  292.  
  293. `L'
  294.      Load the specified Emacs Lisp files (`dired-do-load').  *Note Lisp
  295.      Libraries::.
  296.  
  297. `B'
  298.      Byte compile the specified Emacs Lisp files
  299.      (`dired-do-byte-compile').  *Note Byte Compilation: (elisp)Byte
  300.      Compilation.
  301.  
  302. 
  303. File: emacs,  Node: Shell Commands in Dired,  Next: Transforming File Names,  Prev: Operating on Files,  Up: Dired
  304.  
  305. Shell Commands in Dired
  306. =======================
  307.  
  308.    The dired command `!' (`dired-do-shell-command') reads a shell
  309. command string in the minibuffer and runs that shell command on all the
  310. specified files.  There are two ways of applying a shell command to
  311. multiple files:
  312.  
  313.    * If you use `*' in the shell command, then it runs just once, with
  314.      the list of file names substituted for the `*'.  The order of file
  315.      names is the order of appearance in the Dired buffer.
  316.  
  317.      Thus, `! tar cf foo.tar * RET' runs `tar' on the entire list of
  318.      file names, putting them into one tar file `foo.tar'.
  319.  
  320.    * If the command string doesn't contain `*', then it runs once *for
  321.      each file*, with the file name added at the end.
  322.  
  323.      For example, `! uudecode RET' runs `uudecode' on each file.
  324.  
  325.    What if you want to run the shell command once for each file but with
  326. the file name inserted in the middle?  Or if you want to use the file
  327. names in a more complicated fashion?  Use a shell loop.  For example,
  328. this shell command would run `uuencode' on each of the specified files,
  329. writing the output into a corresponding `.uu' file:
  330.  
  331.      for file in *; uuencode $file $file >$file.uu; done
  332.  
  333.    The working directory for the shell command is the top level
  334. directory of the Dired buffer.
  335.  
  336.    The `!' command does not attempt to update the Dired buffer to show
  337. new or modified files, because it doesn't really understand shell
  338. commands, and does not know what files the shell command changed.  Use
  339. the `g' command to update the Dired buffer (*note Dired Updating::.).
  340.  
  341. 
  342. File: emacs,  Node: Transforming File Names,  Next: Comparison in Dired,  Prev: Shell Commands in Dired,  Up: Dired
  343.  
  344. Transforming File Names in Dired
  345. ================================
  346.  
  347.    Here are commands that alter file names in a systematic way:
  348.  
  349. `% u'
  350.      Rename each of the selected files to an upper case name
  351.      (`dired-upcase').  If the old file names are `Foo' and `bar', the
  352.      new names are `FOO' and `BAR'.
  353.  
  354. `% l'
  355.      Rename each of the selected files to a lower case name
  356.      (`dired-downcase').  If the old file names are `Foo' and `bar',
  357.      the new names are `foo' and `bar'.
  358.  
  359. `% R FROM RET TO RET'
  360. `% C FROM RET TO RET'
  361. `% H FROM RET TO RET'
  362. `% S FROM RET TO RET'
  363.      These four commands rename, copy, make hard links and make soft
  364.      links, in each case computing the new name by regular expression
  365.      substitution from the name of the old file.
  366.  
  367.    The four regular expression substitution commands effectively perform
  368. `query-replace-regexp' on the selected file names in the Dired buffer.
  369. They read two arguments: a regular expression FROM, and a substitution
  370. pattern TO.
  371.  
  372.    The commands match each "old" file name against the regular
  373. expression FROM, and then replace the matching part with TO.  You can
  374. use `\&' and `\DIGIT' in TO to refer to all or part of what the pattern
  375. matched in the old file name, as in `query-replace' (*note Query
  376. Replace::.).  If the regular expression matches more than once in a
  377. file name, only the first match is replaced.
  378.  
  379.    For example, `% R ^.*$ RET x-\& RET' renames each selected file by
  380. prepending `x-' to its name.  The inverse of this, removing `x-' from
  381. the front of each file name, is also possible: one method is `% R
  382. ^x-\(.*\)$ RET \1 RET'; another is `% R ^x- RET RET'.  (Use `^' and `$'
  383. to anchor matches that should span the whole filename.)
  384.  
  385.    Normally, the replacement process does not consider the files'
  386. directory names; it operates on the file name within the directory.  If
  387. you specify a numeric argument of zero, then replacement affects the
  388. entire absolute file name including directory name.
  389.  
  390.    Often you will want to apply the command to all files matching the
  391. same REGEXP that you use in the command.  To do this, mark those files
  392. with `% m REGEXP RET', then use the same regular expression in the
  393. command to operate on the files.  To make this easier, the `%' commands
  394. to operate on files use the last regular expression specified in any
  395. `%' command as a default.
  396.  
  397. 
  398. File: emacs,  Node: Comparison in Dired,  Next: Subdirectories in Dired,  Prev: Transforming File Names,  Up: Dired
  399.  
  400. File Comparison with Dired
  401. ==========================
  402.  
  403.    Here are two Dired commands that compare specified files using
  404. `diff'.
  405.  
  406. `='
  407.      Compare the current file (the file at point) with another file
  408.      (the file at the mark) using the `diff' program (`dired-diff').
  409.      The file at the mark is the first argument of `diff', and the file
  410.      at point is the second argument.
  411.  
  412. `M-='
  413.      Compare the current file with its latest backup file
  414.      (`dired-backup-diff').  If the current file is itself a backup,
  415.      compare it with the file it is a backup of; this way, you can
  416.      compare a file with any backup version of your choice.
  417.  
  418.      The backup file is the first file given to `diff'.
  419.  
  420. 
  421. File: emacs,  Node: Subdirectories in Dired,  Next: Subdirectory Motion,  Prev: Comparison in Dired,  Up: Dired
  422.  
  423. Subdirectories in Dired
  424. =======================
  425.  
  426.    A Dired buffer displays just one directory in the normal case; but
  427. you can optionally include its subdirectories as well.
  428.  
  429.    The simplest way to include multiple directories in one Dired buffer
  430. is to specify the options `-lR' for running `ls'.  (If you give a
  431. numeric argument when you run Dired, then you can specify these options
  432. in the minibuffer.)  That produces a recursive directory listing showing
  433. all subdirectories at all levels.
  434.  
  435.    But usually all the subdirectories are too many; usually you will
  436. prefer to include specific subdirectories only.  You can do this with
  437. the `i' command:
  438.  
  439. `i'
  440.      Insert the contents of a subdirectory later in the buffer.
  441.  
  442.    Use the `i' (`dired-maybe-insert-subdir') command on a line that
  443. describes a file which is a directory.  It inserts the contents of that
  444. directory into the same Dired buffer, and moves there.  Inserted
  445. subdirectory contents follow the top-level directory of the Dired
  446. buffer, just as they do in `ls -lR' output.
  447.  
  448.    If the subdirectory's contents are already present in the buffer, the
  449. `i' command just moves to it.
  450.  
  451.    In either case, `i' sets the Emacs mark before moving, so `C-u
  452. C-SPC' takes you back to the old position in the buffer (the line
  453. describing that subdirectory).
  454.  
  455.    Use the `l' command (`dired-do-redisplay') to update the
  456. subdirectory's contents.  Use `k' to delete the subdirectory.  *Note
  457. Dired Updating::.
  458.  
  459. 
  460. File: emacs,  Node: Subdirectory Motion,  Next: Hiding Subdirectories,  Prev: Subdirectories in Dired,  Up: Dired
  461.  
  462. Moving Over Subdirectories
  463. ==========================
  464.  
  465.    When a Dired buffer lists subdirectories, you can use the page motion
  466. commands `C-x [' and `C-x ]' to move by entire directories.
  467.  
  468.    The following commands move across, up and down in the tree of
  469. directories within one Dired buffer.  They move to "directory header
  470. lines", which are the lines that give a directory's name, at the
  471. beginning of the directory's contents.
  472.  
  473. `C-M-n'
  474.      Go to next subdirectory header line, regardless of level
  475.      (`dired-next-subdir').
  476.  
  477. `C-M-p'
  478.      Go to previous subdirectory header line, regardless of level
  479.      (`dired-prev-subdir').
  480.  
  481. `C-M-u'
  482.      Go up to the parent directory's header line (`dired-tree-up').
  483.  
  484. `C-M-d'
  485.      Go down in the directory tree, to the first subdirectory's header
  486.      line (`dired-tree-down').
  487.  
  488. 
  489. File: emacs,  Node: Hiding Subdirectories,  Next: Dired Updating,  Prev: Subdirectory Motion,  Up: Dired
  490.  
  491. Hiding Subdirectories
  492. =====================
  493.  
  494.    "Hiding" a subdirectory means to make it invisible, except for its
  495. header line, via selective display (*note Selective Display::.).
  496.  
  497. `$'
  498.      Hide or reveal the subdirectory that point is in, and move point
  499.      to the next subdirectory (`dired-hide-subdir').  A numeric
  500.      argument serves as a repeat count.
  501.  
  502. `M-$'
  503.      Hide all subdirectories in this Dired buffer, leaving only their
  504.      header lines (`dired-hide-all').  Or, if any subdirectory is
  505.      currently hidden, make all subdirectories visible again.  You can
  506.      use this command to get an overview in very deep directory trees
  507.      or to move quickly to subdirectories far away.
  508.  
  509.    Ordinary Dired commands never consider files inside a hidden
  510. subdirectory.  For example, the commands to operate on marked files
  511. ignore files in hidden directories even if they are marked.  Thus you
  512. can use hiding to temporarily exclude subdirectories from operations
  513. without having to remove the markers.
  514.  
  515.    The subdirectory hiding commands toggle; that is, they hide what was
  516. visible, and show what was hidden.
  517.  
  518. 
  519. File: emacs,  Node: Dired Updating,  Next: Dired and Find,  Prev: Hiding Subdirectories,  Up: Dired
  520.  
  521. Updating the Dired Buffer
  522. =========================
  523.  
  524.    This section describes commands to update the Dired buffer to reflect
  525. outside (non-Dired) changes in the directories and files, and to delete
  526. part of the Dired buffer.
  527.  
  528. `g'
  529.      Update the entire contents of the Dired buffer (`revert-buffer').
  530.  
  531. `l'
  532.      Update the specified files (`dired-do-redisplay').
  533.  
  534. `k'
  535.      Delete the specified *file lines*--not the files, just the lines
  536.      (`dired-do-kill-lines').
  537.  
  538. `s'
  539.      Toggle between sorting by file name and sorting by date/time
  540.      (`dired-sort-toggle-or-edit').
  541.  
  542. `C-u s SWITCHES RET'
  543.      Refresh the Dired buffer using SWITCHES as
  544.      `dired-listing-switches'.
  545.  
  546.    Type `g' (`revert-buffer') to update the contents of the Dired
  547. buffer, based on changes in the files and directories listed.  This
  548. preserves all marks except for those on files that have vanished.
  549. Hidden subdirectories are updated but remain hidden.
  550.  
  551.    To update only some of the files, type `l' (`dired-do-redisplay').
  552. This command applies to the next N files, or to the marked files if
  553. any, or to the current file.  Updating them means reading their current
  554. status from the file system and changing the buffer to reflect it
  555. properly.
  556.  
  557.    If you use `l' on a subdirectory header line, it updates the
  558. contents of the corresponding subdirectory.
  559.  
  560.    To delete the specified *file lines*--not the files, just the
  561. lines--type `k' (`dired-do-kill-lines').  This command applies to the
  562. next N files, or to the marked files if any, or to the current file.
  563.  
  564.    If you kill the line for a file that is a directory, the directory's
  565. contents are also deleted from the buffer.  Typing `C-u k' on the
  566. header line for a subdirectory is another way to delete a subdirectory
  567. from the Dired buffer.
  568.  
  569.    The `g' command brings back any individual lines that you have
  570. killed in this way, but not subdirectories--you must use `i' to
  571. reinsert each subdirectory.
  572.  
  573.    The files in a Dired buffers are normally in listed alphabetical
  574. order by file names.  Alternatively Dired can sort them by date/time.
  575. The Dired command `s' (`dired-sort-toggle-or-edit') switches between
  576. these two sorting modes.  The mode line in a Dired buffer indicates
  577. which way it is currently sorted--by name, or by date.
  578.  
  579.    `C-u s SWITCHES RET' lets you specify a new value for
  580. `dired-listing-switches'.
  581.  
  582. 
  583. File: emacs,  Node: Dired and Find,  Prev: Dired Updating,  Up: Dired
  584.  
  585. Dired and `find'
  586. ================
  587.  
  588.    You can select a set of files for display in a Dired buffer more
  589. flexibly by using the `find' utility to choose the files.
  590.  
  591.    To search for files with names matching a wildcard pattern use `M-x
  592. find-name-dired'.  It reads arguments DIRECTORY and PATTERN, and
  593. chooses all the files in DIRECTORY or its subdirectories whose
  594. individual names match PATTERN.
  595.  
  596.    The files thus chosen are displayed in a Dired buffer in which the
  597. ordinary Dired commands are available.
  598.  
  599.    If you want to test the contents of files, rather than their names,
  600. use `M-x find-grep-dired'.  This command reads two minibuffer
  601. arguments, DIRECTORY and REGEXP; it chooses all the files in DIRECTORY
  602. or its subdirectories that contain a match for REGEXP.  It works by
  603. running the programs `find' and `grep'.
  604.  
  605.    The most general command in this series is `M-x find-dired', which
  606. lets you specify any condition that `find' can test.  It takes two
  607. minibuffer arguments, DIRECTORY and FIND-ARGS; it runs `find' in
  608. DIRECTORY, passing FIND-ARGS to tell `find' what condition to test.  To
  609. use this command, you need to know how to use `find'.
  610.  
  611. 
  612. File: emacs,  Node: Calendar/Diary,  Next: GNUS,  Prev: Dired,  Up: Top
  613.  
  614. The Calendar and the Diary
  615. **************************
  616.  
  617.    Emacs provides the functions of a desk calendar, with a diary of
  618. planned or past events.  To enter the calendar, type `M-x calendar';
  619. this displays a three-month calendar centered on the current month, with
  620. point on the current date.  With a numeric argument, as in `C-u M-x
  621. calendar', it prompts you for the month and year to be the center of the
  622. three-month calendar.  The calendar uses its own buffer, whose major
  623. mode is Calendar mode.
  624.  
  625.    To exit the calendar, type `q'.  `Mouse-3' in the calendar brings up
  626. a menu of commonly used calendar features.  *Note Customizing the
  627. Calendar and Diary: (elisp)Calendar, for customization information
  628. about the calendar and diary.
  629.  
  630. * Menu:
  631.  
  632. * Calendar Motion::       Moving through the calendar; selecting a date.
  633. * Scroll Calendar::       Bringing earlier or later months onto the screen.
  634. * Counting Days::         How many days are there between two dates?
  635. * General Calendar::      Exiting or recomputing the calendar.
  636. * Holidays::              Displaying dates of holidays.
  637. * Sunrise/Sunset::        Displaying local times of sunrise and sunset.
  638. * Lunar Phases::          Displaying phases of the moon.
  639. * Other Calendars::       Converting dates to other calendar systems.
  640. * Diary::                 Displaying events from your diary.
  641. * Appointments::      Reminders when it's time to do something.
  642. * Daylight Savings::      How to specify when daylight savings time is active.
  643.  
  644. 
  645. File: emacs,  Node: Calendar Motion,  Next: Scroll Calendar,  Up: Calendar/Diary
  646.  
  647. Movement in the Calendar
  648. ========================
  649.  
  650.    Calendar mode lets you move through the calendar in logical units of
  651. time such as days, weeks, months, and years.  If you move outside the
  652. three months originally displayed, the calendar display "scrolls"
  653. automatically through time to make the selected date visible.  Moving to
  654. a date lets you view its holidays or diary entries, convert it to other
  655. calendars; moving longer time periods is also useful simply to scroll
  656. the calendar.
  657.  
  658. * Menu:
  659.  
  660. * Calendar Unit Motion::      Moving by days, weeks, months, and years.
  661. * Move to Beginning or End::  Moving to start/end of weeks, months, and years.
  662. * Specified Dates::           Moving to the current date or another
  663.                                 specific date.
  664.  
  665. 
  666. File: emacs,  Node: Calendar Unit Motion,  Next: Move to Beginning or End,  Up: Calendar Motion
  667.  
  668. Motion by Standard Lengths of Time
  669. ----------------------------------
  670.  
  671.    The commands for movement in the calendar buffer parallel the
  672. commands for movement in text.  You can move forward and backward by
  673. days, weeks, months, and years.
  674.  
  675. `C-f'
  676.      Move point one day forward (`calendar-forward-day').
  677.  
  678. `C-b'
  679.      Move point one day backward (`calendar-backward-day').
  680.  
  681. `C-n'
  682.      Move point one week forward (`calendar-forward-week').
  683.  
  684. `C-p'
  685.      Move point one week backward (`calendar-backward-week').
  686.  
  687. `M-}'
  688.      Move point one month forward (`calendar-forward-month').
  689.  
  690. `M-{'
  691.      Move point one month backward (`calendar-backward-month').
  692.  
  693. `C-x ]'
  694.      Move point one year forward (`calendar-forward-year').
  695.  
  696. `C-x ['
  697.      Move point one year backward (`calendar-forward-year').
  698.  
  699.    The day and week commands are natural analogues of the usual Emacs
  700. commands for moving by characters and by lines.  Just as `C-n' usually
  701. moves to the same column in the following line, in Calendar mode it
  702. moves to the same day in the following week.  And `C-p' moves to the
  703. same day in the previous week.
  704.  
  705.    The arrow keys are equivalent to `C-f', `C-b', `C-n' and `C-p', just
  706. as they normally are in other modes.
  707.  
  708.    The commands for motion by months and years work like those for
  709. weeks, but move a larger distance.  The month commands `M-}' and `M-{'
  710. move forward or backward by an entire month's time.  The year commands
  711. `C-x ]' and `C-x [' move forward or backward a whole year.
  712.  
  713.    The easiest way to remember these commands is to consider months and
  714. years analogous to paragraphs and pages of text, respectively.  But the
  715. commands themselves are not quite analogous.  The ordinary Emacs
  716. paragraph commands move to the beginning or end of a paragraph, whereas
  717. these month and year commands move by an entire month or an entire
  718. year, which usually involves skipping across the end of a month or year.
  719.  
  720.    All these commands accept a numeric argument as a repeat count.  For
  721. convenience, the digit keys and the minus sign specify numeric
  722. arguments in Calendar mode even without the Meta modifier.  For example,
  723. `100 C-f' moves point 100 days forward from its present location.
  724.  
  725. 
  726. File: emacs,  Node: Move to Beginning or End,  Next: Specified Dates,  Prev: Calendar Unit Motion,  Up: Calendar Motion
  727.  
  728. Beginning or End of Week, Month or Year
  729. ---------------------------------------
  730.  
  731.    A week (or month, or year) is not just a quantity of days; we think
  732. of weeks (months, years) as starting on particular dates.  So Calendar
  733. mode provides commands to move to the beginning or end of a week, month
  734. or year:
  735.  
  736. `C-a'
  737.      Move point to start of week (`calendar-beginning-of-week').
  738.  
  739. `C-e'
  740.      Move point to end of week (`calendar-end-of-week').
  741.  
  742. `M-a'
  743.      Move point to start of month (`calendar-beginning-of-month').
  744.  
  745. `M-e'
  746.      Move point to end of month (`calendar-end-of-month').
  747.  
  748. `M-<'
  749.      Move point to start of year (`calendar-beginning-of-year').
  750.  
  751. `M->'
  752.      Move point to end of year (`calendar-end-of-year').
  753.  
  754.    These commands also take numeric arguments as repeat counts, with the
  755. repeat count indicating how many weeks, months, or years to move
  756. backward or forward.
  757.  
  758.    By default, weeks begin on Sunday.  To make them begin on Monday
  759. instead, set the variable `calendar-week-start-day' to 1.
  760.  
  761. 
  762. File: emacs,  Node: Specified Dates,  Prev: Move to Beginning or End,  Up: Calendar Motion
  763.  
  764. Specified Dates
  765. ---------------
  766.  
  767.    Calendar mode provides commands for moving to a particular date
  768. specified in various ways.
  769.  
  770. `g d'
  771.      Move point to specified date (`calendar-goto-date').
  772.  
  773. `o'
  774.      Center calendar around specified month (`calendar-other-month').
  775.  
  776. `.'
  777.      Move point to today's date (`calendar-goto-today').
  778.  
  779.    `g d' (`calendar-goto-date') prompts for a year, a month, and a day
  780. of the month, and then moves to that date.  Because the calendar
  781. includes all dates from the beginning of the current era, you must type
  782. the year in its entirety; that is, type `1990', not `90'.
  783.  
  784.    `o' (`calendar-other-month') prompts for a month and year, then
  785. centers the three-month calendar around that month.
  786.  
  787.    You can return to today's date with `.' (`calendar-goto-today').
  788.  
  789. 
  790. File: emacs,  Node: Scroll Calendar,  Next: Counting Days,  Prev: Calendar Motion,  Up: Calendar/Diary
  791.  
  792. Scrolling in the Calendar
  793. =========================
  794.  
  795.    The calendar display scrolls automatically through time when you
  796. move out of the visible portion.  You can also scroll it manually.
  797. Imagine that the calendar window contains a long strip of paper with
  798. the months on it.  Scrolling it means moving the strip so that new
  799. months become visible in the window.
  800.  
  801. `C-x <'
  802.      Scroll calendar one month forward (`scroll-calendar-left').
  803.  
  804. `C-x >'
  805.      Scroll calendar one month backward (`scroll-calendar-right').
  806.  
  807. `C-v'
  808. `NEXT'
  809.      Scroll calendar three months forward
  810.      (`scroll-calendar-left-three-months').
  811.  
  812. `M-v'
  813. `PRIOR'
  814.      Scroll calendar three months backward
  815.      (`scroll-calendar-right-three-months').
  816.  
  817.    The most basic calendar scroll commands scroll by one month at a
  818. time.  This means that there are two months of overlap between the
  819. display before the command and the display after.  `C-x <' scrolls the
  820. calendar contents one month to the left; that is, it moves the display
  821. forward in time.  `C-x >' scrolls the contents to the right, which
  822. moves backwards in time.
  823.  
  824.    The commands `C-v' and `M-v' scroll the calendar by an entire
  825. "screenful"--three months--in analogy with the usual meaning of these
  826. commands.  `C-v' makes later dates visible and `M-v' makes earlier
  827. dates visible.  These commands take a numeric argument as a repeat
  828. count; in particular, since `C-u' multiplies the next command by four,
  829. typing `C-u C-v' scrolls the calendar forward by a year and typing `C-u
  830. M-v' scrolls the calendar backward by a year.
  831.  
  832.    The function keys NEXT and PRIOR are equivalent to `C-v' and `M-v',
  833. just as they are in other modes.
  834.  
  835. 
  836. File: emacs,  Node: Counting Days,  Next: General Calendar,  Prev: Scroll Calendar,  Up: Calendar/Diary
  837.  
  838. Counting Days
  839. =============
  840.  
  841. `M-='
  842.      Display the number of days in the current region
  843.      (`calendar-count-days-region').
  844.  
  845.    To determine the number of days in the region, type `M-='
  846. (`calendar-count-days-region').  The numbers of days printed is
  847. *inclusive*; that is, it includes the days specified by mark and point.
  848.  
  849. 
  850. File: emacs,  Node: General Calendar,  Next: Holidays,  Prev: Counting Days,  Up: Calendar/Diary
  851.  
  852. Miscellaneous Calendar Commands
  853. ===============================
  854.  
  855. `p d'
  856.      Display day-in-year (`calendar-print-day-of-year').
  857.  
  858. `C-c C-l'
  859.      Regenerate the calendar window (`redraw-calendar').
  860.  
  861. `SPC'
  862.      Scroll the next window (`scroll-other-window').
  863.  
  864. `q'
  865.      Exit from calendar (`exit-calendar').
  866.  
  867.    To print the number of days elapsed since the start of the year, or
  868. the number of days remaining in the year, type the `p d' command
  869. (`calendar-print-day-of-year').  This displays both of those numbers in
  870. the echo area.  The number of days elapsed includes the selected date.
  871. The number of days remaining does not include that date.
  872.  
  873.    If the calendar window text gets corrupted, type `C-c C-l'
  874. (`redraw-calendar') to redraw it.  (This can only happen if you use
  875. non-Calendar-mode editing commands.)
  876.  
  877.    In Calendar mode, you can use `SPC' (`scroll-other-window') to
  878. scroll the other window.  This is handy when you display a list of
  879. holidays or diary entries in another window.
  880.  
  881.    To exit from the calendar, type `q' (`exit-calendar').  This buries
  882. all buffers related to the calendar and returns the window display to
  883. what it was when you entered the calendar.
  884.  
  885. 
  886. File: emacs,  Node: Holidays,  Next: Sunrise/Sunset,  Prev: General Calendar,  Up: Calendar/Diary
  887.  
  888. Holidays
  889. ========
  890.  
  891.    The Emacs calendar knows about all major and many minor holidays,
  892. and can display them.
  893.  
  894. `h'
  895.      Display holidays for the selected date
  896.      (`calendar-cursor-holidays').
  897.  
  898. `Mouse-2 Holidays'
  899.      Display any diary entries for the date you click on.
  900.  
  901. `x'
  902.      Mark holidays in the calendar window (`mark-calendar-holidays').
  903.  
  904. `u'
  905.      Unmark calendar window (`calendar-unmark').
  906.  
  907. `a'
  908.      List all holidays for the displayed three months in another window
  909.      (`list-calendar-holidays').
  910.  
  911. `M-x holidays'
  912.      List all holidays for three months around today's date in another
  913.      window.
  914.  
  915.    To see if any holidays fall on a given date, position point on that
  916. date in the calendar window and use the `h' command.  Alternatively,
  917. click on that date with `Mouse-2' and then choose `Holidays' from the
  918. menu that appears.  Either way, this displays the holidays for that
  919. date, in the echo area if they fit there, otherwise in a separate
  920. window.
  921.  
  922.    To view the distribution of holidays for all the dates shown in the
  923. calendar, use the `x' command.  This displays the dates that are
  924. holidays in a different face (or places a `*' after these dates, if
  925. display with multiple faces is not available).  The command applies both
  926. to the currently visible months and to other months that subsequently
  927. become visible by scrolling.  To turn marking off and erase the current
  928. marks, type `u', which also erases any diary marks (*note Diary::.).
  929.  
  930.    To get even more detailed information, use the `a' command, which
  931. displays a separate buffer containing a list of all holidays in the
  932. current three-month range.  You can use SPC in the calendar window to
  933. scroll that list.
  934.  
  935.    The command `M-x holidays' displays the list of holidays for the
  936. current month and the preceding and succeeding months; this works even
  937. if you don't have a calendar window.  If you want the list of holidays
  938. centered around a different month, use `C-u M-x holidays', which
  939. prompts for the month and year.
  940.  
  941.    The holidays known to Emacs include American holidays and the major
  942. Christian, Jewish, and Islamic holidays; also the solstices and
  943. equinoxes.
  944.  
  945.    The dates used by Emacs for holidays are based on *current
  946. practice*, not historical fact.  Historically, for instance, the start
  947. of daylight savings time and even its existence have varied from year to
  948. year, but present American law mandates that daylight savings time
  949. begins on the first Sunday in April.  In an American locale, Emacs
  950. always uses this definition, even though it is wrong for some prior
  951. years.
  952.  
  953. 
  954. File: emacs,  Node: Sunrise/Sunset,  Next: Lunar Phases,  Prev: Holidays,  Up: Calendar/Diary
  955.  
  956. Times of Sunrise and Sunset
  957. ===========================
  958.  
  959.    Special calendar commands can tell you, to within a minute or two,
  960. the times of sunrise and sunset for any date.
  961.  
  962. `S'
  963.      Display times of sunrise and sunset for the selected date
  964.      (`calendar-sunrise-sunset').
  965.  
  966. `Mouse-2 Sunrise/Sunset'
  967.      Display times of sunrise and sunset for the date you click on.
  968.  
  969. `M-x sunrise-sunset'
  970.      Display times of sunrise and sunset for today's date.
  971.  
  972. `C-u M-x sunrise-sunset'
  973.      Display times of sunrise and sunset for a specified date.
  974.  
  975.    Within the calendar, to display the *local times* of sunrise and
  976. sunset in the echo area, move point to the date you want, and type `S'.
  977. Alternatively, click `Mouse-2' on the date, then choose
  978. `Sunrise/Sunset' from the menu that appears.  The command `M-x
  979. sunrise-sunset' is available outside the calendar to display this
  980. information for today's date or a specified date.  To specify a date
  981. other than today, use `C-u M-x sunrise-sunset', which prompts for the
  982. year, month, and day.
  983.  
  984.    You can display the times of sunrise and sunset for any location and
  985. any date with `C-u C-u M-x sunrise-sunset'.  This asks you for a
  986. longitude, latitude, number of minutes difference from Coordinated
  987. Universal Time, and date, and then tells you the times of sunrise and
  988. sunset for that location on that date.
  989.  
  990.    Because the times of sunrise and sunset depend on the location on
  991. earth, you need to tell Emacs your latitude, longitude, and location
  992. name before using these commands.  Here is an example of what to set:
  993.  
  994.      (setq calendar-latitude 40.1)
  995.      (setq calendar-longitude -88.2)
  996.      (setq calendar-location-name "Urbana, IL")
  997.  
  998. Use one decimal place in the values of `calendar-latitude' and
  999. `calendar-longitude'.
  1000.  
  1001.    Your time zone also affects the local time of sunrise and sunset.
  1002. Emacs usually gets time zone information from the operating system, but
  1003. if these values are not what you want (or if the operating system does
  1004. not supply them), you must set them yourself.  Here is an example:
  1005.  
  1006.      (setq calendar-time-zone -360)
  1007.      (setq calendar-standard-time-zone-name "CST")
  1008.      (setq calendar-daylight-time-zone-name "CDT")
  1009.  
  1010. The value of `calendar-time-zone' is the number of minutes difference
  1011. between your local standard time and Coordinated Universal Time
  1012. (Greenwich time).  The values of `calendar-standard-time-zone-name' and
  1013. `calendar-daylight-time-zone-name' are the abbreviations used in your
  1014. time zone.  Emacs displays the times of sunrise and sunset *corrected
  1015. for daylight savings time*.  *Note Daylight Savings::, for how daylight
  1016. savings time is determined.
  1017.  
  1018. 
  1019. File: emacs,  Node: Lunar Phases,  Next: Other Calendars,  Prev: Sunrise/Sunset,  Up: Calendar/Diary
  1020.  
  1021. Phases of the Moon
  1022. ==================
  1023.  
  1024.    These calendar commands display the dates and times of the phases of
  1025. the moon (new moon, first quarter, full moon, last quarter).  This
  1026. feature is useful for debugging problems that "depend on the phase of
  1027. the moon."
  1028.  
  1029. `M'
  1030.      Display the dates and times for all the quarters of the moon for
  1031.      the three-month period shown (`calendar-phases-of-moon').
  1032.  
  1033. `M-x phases-of-moon'
  1034.      Display dates and times of the quarters of the moon for three
  1035.      months around today's date.
  1036.  
  1037.    Within the calendar, use the `M' command to display a separate
  1038. buffer of the phases of the moon for the current three-month range.  The
  1039. dates and times listed are accurate to within a few minutes.
  1040.  
  1041.    Outside the calendar, use the command `M-x phases-of-moon' to
  1042. display the list of the phases of the moon for the current month and the
  1043. preceding and succeeding months.  For information about a different
  1044. month, use `C-u M-x phases-of-moon', which prompts for the month and
  1045. year.
  1046.  
  1047.    The dates and times given for the phases of the moon are given in
  1048. local time (corrected for daylight savings, when appropriate); but if
  1049. the variable `calendar-time-zone' is void, Coordinated Universal Time
  1050. (the Greenwich time zone) is used.  *Note Daylight Savings::.
  1051.  
  1052. 
  1053. File: emacs,  Node: Other Calendars,  Next: Diary,  Prev: Lunar Phases,  Up: Calendar/Diary
  1054.  
  1055. Conversion To and From Other Calendars
  1056. ======================================
  1057.  
  1058.    The Emacs calendar displayed is *always* the Gregorian calendar,
  1059. sometimes called the "new style" calendar, which is used in most of the
  1060. world today.  However, this calendar did not exist before the sixteenth
  1061. century and was not widely used before the eighteenth century; it did
  1062. not fully displace the Julian calendar and gain universal acceptance
  1063. until the early twentieth century.  The Emacs calendar can display any
  1064. month since January, year 1 of the current era, but the calendar
  1065. displayed is the Gregorian, even for a date at which the Gregorian
  1066. calendar did not exist.
  1067.  
  1068.    While Emacs cannot display other calendars, it can convert dates to
  1069. and from several other calendars.
  1070.  
  1071. * Menu:
  1072.  
  1073. * Calendar Systems::       The calendars Emacs understands
  1074.                  (aside from Gregorian).
  1075. * To Other Calendar::       Converting the selected date to various calendars.
  1076. * From Other Calendar::       Moving to a date specified in another calendar.
  1077. * Mayan Calendar::       Moving to a date specified in a Mayan calendar.
  1078.  
  1079. 
  1080. File: emacs,  Node: Calendar Systems,  Next: To Other Calendar,  Up: Other Calendars
  1081.  
  1082. Supported Calendar Systems
  1083. --------------------------
  1084.  
  1085.    The ISO commercial calendar is used largely in Europe.
  1086.  
  1087.    The Julian calendar, named after Julius Caesar, was the one used in
  1088. Europe throughout medieval times, and in many countries up until the
  1089. nineteenth century.
  1090.  
  1091.    Astronomers use a simple counting of days elapsed since noon, Monday,
  1092. January 1, 4713 B.C. on the Julian calendar.  The number of days elapsed
  1093. is called the *Julian day number* or the *Astronomical day number*.
  1094.  
  1095.    The Hebrew calendar is used by tradition in the Jewish religion.  The
  1096. Emacs calendar program uses the Hebrew calendar to determine the dates
  1097. of Jewish holidays.  Hebrew calendar dates begin and end at sunset.
  1098.  
  1099.    The Islamic calendar is used in many predominantly Islamic countries.
  1100. Emacs uses it to determine the dates of Islamic holidays.  There is no
  1101. universal agreement in the Islamic world about the calendar; Emacs uses
  1102. a widely accepted version, but the precise dates of Islamic holidays
  1103. often depend on proclamation by religious authorities, not on
  1104. calculations.  As a consequence, the actual dates of observance can vary
  1105. slightly from the dates computed by Emacs.  Islamic calendar dates begin
  1106. and end at sunset.
  1107.  
  1108.    The French Revolutionary calendar was created by the Jacobins after
  1109. the 1789 revolution, to represent a more secular and nature-based view
  1110. of the annual cycle, and to install a 10-day week in a rationalization
  1111. measure similar to the metric system.  The French government officially
  1112. abandoned this calendar at the end of 1805.
  1113.  
  1114.    The Maya of Central America used three separate, overlapping calendar
  1115. systems, the *long count*, the *tzolkin*, and the *haab*.  Emacs knows
  1116. about all three of these calendars.  Experts dispute the exact
  1117. correlation between the Mayan calendar and our calendar; Emacs uses the
  1118. Goodman-Martinez-Thompson correlation in its calculations.
  1119.  
  1120. 
  1121. File: emacs,  Node: To Other Calendar,  Next: From Other Calendar,  Prev: Calendar Systems,  Up: Other Calendars
  1122.  
  1123. Converting To Other Calendars
  1124. -----------------------------
  1125.  
  1126.    The following commands describe the selected date (the date at point)
  1127. in various other calendar systems:
  1128.  
  1129. `Mouse-2  Other Calendars'
  1130.      Display the date that you click on, expressed in various other
  1131.      calendars.
  1132.  
  1133. `p c'
  1134.      Display ISO commercial calendar equivalent for selected day
  1135.      (`calendar-print-iso-date').
  1136.  
  1137. `p j'
  1138.      Display Julian date for selected day
  1139.      (`calendar-print-julian-date').
  1140.  
  1141. `p a'
  1142.      Display astronomical (Julian) day number for selected day
  1143.      (`calendar-print-astro-day-number').
  1144.  
  1145. `p h'
  1146.      Display Hebrew date for selected day
  1147.      (`calendar-print-hebrew-date').
  1148.  
  1149. `p i'
  1150.      Display Islamic date for selected day
  1151.      (`calendar-print-islamic-date').
  1152.  
  1153. `p f'
  1154.      Display French Revolutionary date for selected day
  1155.      (`calendar-print-french-date').
  1156.  
  1157. `p m'
  1158.      Display Mayan date for selected day (`calendar-print-mayan-date').
  1159.  
  1160.    If you are using X windows, the easiest way to translate a date into
  1161. other calendars is to click on it with `Mouse-2', then choose `Other
  1162. Calendars' from the menu that appears.  This displays the equivalent
  1163. forms of the date in all the calendars Emacs understands, in the form
  1164. of a menu.  (Choosing an alternative from this menu doesn't actually do
  1165. anything--the menu is used only for display.)
  1166.  
  1167.    Put point on the desired date of the Gregorian calendar, then type
  1168. the appropriate keys.  The `p' is a mnemonic for "print" since Emacs
  1169. "prints" the equivalent date in the echo area.
  1170.  
  1171. 
  1172. File: emacs,  Node: From Other Calendar,  Next: Mayan Calendar,  Prev: To Other Calendar,  Up: Other Calendars
  1173.  
  1174. Converting From Other Calendars
  1175. -------------------------------
  1176.  
  1177.    You can use the other supported calendars to specify a date to move
  1178. to.  This section describes the commands for doing this using calendars
  1179. other than Mayan; for the Mayan calendar, see the following section.
  1180.  
  1181. `g c'
  1182.      Move to a date specified in the ISO commercial calendar
  1183.      (`calendar-goto-iso-date').
  1184.  
  1185. `g j'
  1186.      Move to a date specified in the Julian calendar
  1187.      (`calendar-goto-julian-date').
  1188.  
  1189. `g a'
  1190.      Move to a date specified in astronomical (Julian) day number
  1191.      (`calendar-goto-astro-day-number').
  1192.  
  1193. `g h'
  1194.      Move to a date specified in the Hebrew calendar
  1195.      (`calendar-goto-hebrew-date').
  1196.  
  1197. `g i'
  1198.      Move to a date specified in the Islamic calendar
  1199.      (`calendar-goto-islamic-date').
  1200.  
  1201. `g f'
  1202.      Move to a date specified in the French Revolutionary calendar
  1203.      (`calendar-goto-french-date').
  1204.  
  1205.    These commands ask you for a date on the other calendar, move point
  1206. to the Gregorian calendar date equivalent to that date, and display the
  1207. other calendar's date in the echo area.  Emacs uses strict completion
  1208. (*note Completion::.) whenever it asks you to type a month name, so you
  1209. don't have to worry about the spelling of Hebrew, Islamic, or French
  1210. names.
  1211.  
  1212.    One common question concerning the Hebrew calendar is the computation
  1213. of the anniversary of a date of death, called a "yahrzeit."  The Emacs
  1214. calendar includes a facility for such calculations.  If you are in the
  1215. calendar, the command `M-x list-yahrzeit-dates' asks you for a range of
  1216. years and then displays a list of the yahrzeit dates for those years
  1217. for the date given by point.  If you are not in the calendar, this
  1218. command first asks you for the date of death and the range of years,
  1219. and then displays the list of yahrzeit dates.
  1220.  
  1221.